{extend name="base" /}
<!-- page specific plugin styles -->
{block name="plugin-styles"}{/block}
<!-- inline styles related to tdis page -->
{block name="inline-styles"}
<link rel="stylesheet" href="/static/ace/assets/css/colorbox.min.css" />
{/block}
<!-- breadcrumb -->
{block name="breadcrumbs"}
<ul class="breadcrumb">
    <li>
        <i class="ace-icon fa fa-home home-icon"></i>
        <a href="{:url('Index/index')}">首页</a>
    </li>
    <li class="active">代理管理</li>
</ul>
<!-- /.breadcrumb -->
{/block}
<!-- PAGE CONTENT BEGINS -->
{block name="content"}
<div class="page-header">
    <h1>
        代理详情
    </h1>
</div>
<!-- /.page-header -->
<div class="row">
    <div class="col-xs-12">
        <div class="col-xs-12 col-sm-3 center">
            <div>
                <span class="profile-picture">
                    <img id="avatar" class="editable img-responsive editable-click editable-empty" alt="{$item.name}" src="{$item.face}">
                </span>
                <div class="width-80 label label-info label-xlg arrowed-in arrowed-in-right">
                    <div class="inline position-relative">
                        <a class="user-title-label dropdown-toggle" data-toggle="dropdown" href="#">
                            <i class="ace-icon fa fa-circle {if condition="($item.status == 2)"}light-grey{else} light-green{/if}">
                            </i>
                            <span class="white">
                                 {$item.name}
                            </span>
                        </a>
                        <ul class="align-left dropdown-menu dropdown-caret dropdown-lighter">
                            <li class="dropdown-header">
                                修改状态
                            </li>
                            <li>
                                <a href="#">
                                    <i class="ace-icon fa fa-circle grey">
                                    </i>
                                    <span class="grey">
                                        未审核
                                    </span>
                                </a>
                            </li>
                            <li>
                                <a href="#">
                                    <i class="ace-icon fa fa-circle green">
                                    </i>
                                    <span class="green">
                                        已审核
                                    </span>
                                </a>
                            </li>
                        </ul>
                    </div>
                </div>
                <div class="space-6">
                
               </div>
               <div class="widget-header widget-header-small">
                    <h4 class="widget-title blue smaller">
                        余额
                    </h4>
                </div>
                <div class="profile-contact-links align-left">
                    <p>总额金额 : <b class="blue">{$item.account + $item.rewardaccount}</b></p>
                    <p>充值账户-余额 : <b class="blue">{$item.account}</b></p>
                    <p>充值账户(锁定金额) : <b class="blue">{$item.account_lock}</b></p>
                    <p>奖励账户 : <b class="blue">{$item.rewardaccount}</b></p>
                    <p>奖励账户(锁定金额) : <b class="blue">{$item.rewardaccount_lock}</b></p>
                    <p>押金账户 : <b class="blue">{$item.yajinaccount}</b></p>
                </div>
                <div class="space-2">
                
                </div>
               <div class="widget-header widget-header-small">
                    <h4 class="widget-title blue smaller">
                        收入
                    </h4>
                </div>
                <div class="profile-contact-links align-left">
                    <p><a href="{:url('recharge/record')}?mid={$item.id}" class="btn-link">总的充值金额 : <b class="pink">{$item.recharge_money}</b></a></p>
                    <p><a href="{:url('reward/order_reward')}?mid={$item.id}" class="btn-link">总的奖励金额 : <b class="pink">{$item.reward_money}</b></a></p>
                </div>
                <div class="space-2">
                </div>
                <div class="widget-header widget-header-small">
                    <h4 class="widget-title blue smaller">
                        支出
                    </h4>
                </div>
                <div class="profile-contact-links align-left">
                    <p><a href="{:url('order/index')}?mid={$item.id}" class="btn-link">订单消耗充值金额 : <b class="pink">{$item.order_account_money}</b></a></p>
                    <p><a href="{:url('order/index')}?mid={$item.id}" class="btn-link">订单消耗奖励金额 : <b class="pink">{$item.order_reward_account_money}</b></a></p>
                    <p><a href="{:url('withdraw/record')}?mid={$item.id}" class="btn-link">提现金额 : <b class="pink">{$item.withdraw_money}</b></a></p>
                    <p><a href="{:url('order/index')}?mid={$item.id}" class="btn-link">订单消耗锁定金额 : <b class="pink">{$item.account_lock}</b></a></p>
                    <p><a href="{:url('withdraw/record')}?mid={$item.id}" class="btn-link">提现锁定金额 : <b class="pink">{$item.rewardaccount_lock}</b></a></p>
                </div>
            </div>
       </div>
       <div class="col-xs-12 col-sm-9">
            <div class="space-12">
            </div>
            <div class="center">
                <a href="{:url('recharge/record')}?mid={$item.id}">
                <span class="btn btn-app btn-sm btn-light no-hover">
                    <span class="line-height-1 bigger-170 blue">
                        {$item.recharge_count}
                    </span>
                    <br>
                        <span class="line-height-1 smaller-90">
                           充值数
                        </span>
                </span>
                </a>
                <a href="{:url('order/index')}?mid={$item.id}">
                <span class="btn btn-app btn-sm btn-success no-hover">
                    <span class="line-height-1 bigger-170">
                        {$item.order_count}
                    </span>
                    <br>
                        <span class="line-height-1 smaller-90">
                            下单数
                        </span>
                </span>
                </a>
                <a href="{:url('withdraw/record')}?mid={$item.id}">
                <span class="btn btn-app btn-sm btn-pink no-hover">
                    <span class="line-height-1 bigger-170">
                        {$item.withdraw_count}
                    </span>
                    <br>
                        <span class="line-height-1 smaller-90">
                            提现数
                        </span>
                </span>
                </a>
                <a href="{:url('agent/address')}?mid={$item.id}&type=1">
                <span class="btn btn-app btn-sm btn-yellow no-hover">
                    <span class="line-height-1 bigger-170">
                        {$item.received_addres_count}
                    </span>
                    <br>
                        <span class="line-height-1 smaller-90">
                            收货地址
                        </span>
                </span>
                </a>
                <a href="{:url('agent/address')}?mid={$item.id}&type=2">
                <span class="btn btn-app btn-sm btn-grey no-hover">
                    <span class="line-height-1 bigger-170">
                        {$item.sender_addres_count}
                    </span>
                    <br>
                        <span class="line-height-1 smaller-90">
                            发货地址
                        </span>
                </span>
                </a>
            </div>
            
            <div class="space-24">
            </div>
            <div class="profile-user-info profile-user-info-striped">
                <div class="profile-info-row">
                    <div class="profile-info-name" style="width: 200px;">
                        姓名
                    </div>
                    <div class="profile-info-value">
                        <span class="editable editable-click" id="username">
                            {$item.name}
                        </span>
                    </div>
                </div>
                <div class="profile-info-row">
                    <div class="profile-info-name" style="width: 200px;">
                        电话
                    </div>
                    <div class="profile-info-value">
                        <span class="editable editable-click" id="username">
                            {$item.tel}
                        </span>
                    </div>
                </div>
                <div class="profile-info-row">
                    <div class="profile-info-name" style="width: 200px;">
                        状态
                    </div>
                    <div class="profile-info-value">
                        <span class="editable editable-click" id="username">
                            {if condition="($item.status == 2)"}
                             <span class="label label-inverse">未审核</span>
                            {elseif condition="$item.status == 1"/}
                            <span class="label label-success arrowed">已审核</span>
                            {else /} 
                            -
                            {/if}
                        </span>
                    </div>
                </div>
                <div class="profile-info-row">
                    <div class="profile-info-name" style="width: 200px;">
                        级别
                    </div>
                    <div class="profile-info-value">
                        <span class="editable editable-click" id="username">
                           {$item.grade_name}
                        </span>
                    </div>
                </div>
                 <div class="profile-info-row">
                    <div class="profile-info-name" style="width: 200px;">
                        上级
                    </div>
                    <div class="profile-info-value">
                        <span class="editable editable-click" id="username">
                            {$item.pname}
                        </span>
                    </div>
                </div>
                <div class="profile-info-row">
                    <div class="profile-info-name">
                        可用余额
                    </div>
                    <div class="profile-info-value">
                        <span class="editable editable-click" id="username">
                           {$item.account + $item.rewardaccount}
                        </span>
                    </div>
                </div>
                <div class="profile-info-row">
                    <div class="profile-info-name">
                        锁定金额
                    </div>
                    <div class="profile-info-value">
                        <span class="editable editable-click" id="username">
                            {$item.account_lock + $item.rewardaccount_lock}
                        </span>
                    </div>
                </div>
                <div class="profile-info-row">
                    <div class="profile-info-name">
                        押金账户
                    </div>
                    <div class="profile-info-value">
                        <span class="editable editable-click" id="username">
                           {$item.yajinaccount}
                        </span>
                    </div>
                </div>
                <div class="profile-info-row">
                    <div class="profile-info-name">
                       微信号
                    </div>
                    <div class="profile-info-value">
                        <span class="editable editable-click" id="username">
                            {$item.weixin}
                        </span>
                    </div>
                </div>
                <div class="profile-info-row">
                    <div class="profile-info-name">
                        邮箱
                    </div>
                    <div class="profile-info-value">
                        <span class="editable editable-click" id="age">
                             {$item.email}
                        </span>
                    </div>
                </div>
                <div class="profile-info-row">
                    <div class="profile-info-name">
                        身份证
                    </div>
                    <div class="profile-info-value">
                        <span class="editable editable-click" id="signup">
                            {$item.idnum}
                        </span>
                    </div>
                </div>
                <div class="profile-info-row">
                    <div class="profile-info-name">
                        所在地
                    </div>
                    <div class="profile-info-value">
                        <span class="editable editable-click" id="signup">
                            {$item.addrvalue}
                        </span>
                    </div>
                </div>
                <div class="profile-info-row">
                    <div class="profile-info-name">
                        详细地址
                    </div>
                    <div class="profile-info-value">
                        <span class="editable editable-click" id="signup">
                            {$item.addr}
                        </span>
                    </div>
                </div>
                <div class="profile-info-row">
                    <div class="profile-info-name">
                        申请时间
                    </div>
                    <div class="profile-info-value">
                        <span class="editable editable-click" id="age">
                            {$item.addtime}
                        </span>
                    </div>
                </div>
                <div class="profile-info-row">
                    <div class="profile-info-name">
                        是否绑定微信
                    </div>
                    <div class="profile-info-value">
                        <span class="editable editable-click" id="age">
                            {if condition = '$item.passport_uid > 0'}
                            <span class="label label-success arrowed-in">已绑定</span>
                            {else}
                            <span class="label label-inverse arrowed-in">未绑定</span>
                            {/if}
                        </span>
                    </div>
                </div>
                <div class="profile-info-row">
                    <div class="profile-info-name">
                        备注
                    </div>
                    <div class="profile-info-value">
                        <span class="editable editable-click" id="age">
                            {$item.beizhu}
                        </span>
                    </div>
                </div>
            </div>
            <div class="space-20">
            </div>
        </div>
    </div>
</div>


{/block}
<!-- PAGE CONTENT ENDS -->
<!-- page specific plugin scripts -->
{block name="plugin-scripts"}
<script src="/static/ace/assets/js/jquery.colorbox.min.js"></script>
{/block}
<!-- inline scripts related to tdis page -->
{block name="related-scripts"}
<script type="text/javascript">
    
</script>
{/block}